package com.tcd.service;

import com.tcd.outRisk.entity.ClaimMainInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "cloud-CarInsuranceClaims-outRisk-config", contextId = "outRisktwo")
public interface Claimmainservice {
    /**
     * 方法描述
     *
     * @param clainmainid
     * @description:根据赔案号查询对应的信息
     * @return: ClaimMainInfo
     * @author: daixingyu
     * @date: 2021-05-28  10:02
     */
    @RequestMapping("/ClaimmainInfo/Claimmainone")
    public ClaimMainInfo Clainmainone(@RequestParam(value = "clainmainid", required = false) String clainmainid);

    /**
     * 方法描述
     *
     * @param ClaimMainId
     * @param ClaimMainstatus
     * @description:改变案件状态
     * @return: boolean
     * @author: daixingyu
     * @date: 2021-06-02  9:51
     */
    @RequestMapping("/ClaimmainInfo/Claimmainupdatestatus")
    public boolean Clainmainupdatestatus(@RequestParam(value = "ClaimMainId", required = false) String ClaimMainId, @RequestParam(value = "ClaimMainstatus", required = false) String ClaimMainstatus);

    @RequestMapping("/ClaimmainInfo/getClaimMainone")
    public ClaimMainInfo getClaimmainone(@RequestParam(value = "claimmainid", required = false) String claimmainid);
}
